﻿<%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Webfrom._Default" %>

<asp:Content ID="BodyContent" ContentPlaceHolderID="MainContent" runat="server">

    <asp:Button runat ="server" ID ="OrAdd" Text ="添加" OnClick ="OrAdd_Click" />

    <style >
        th{
            width :200px;
            text-align :center ;
        }
        td{
            text-align :center ;
            line-height :25px;
        }
    </style>
    
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="Id" OnRowEditing ="GridView1_RowEditing" OnRowUpdating ="GridView1_RowUpdating" OnRowDeleting ="GridView1_RowDeleting" OnRowCancelingEdit ="GridView1_RowCancelingEdit" >
        <Columns>
            <asp:BoundField DataField="Id" HeaderText="Id" ReadOnly ="true" /> 
            <asp:BoundField DataField="stuID" HeaderText="编号" SortExpression="stuID" />
            <asp:BoundField DataField="stuName" HeaderText="姓名" SortExpression="stuName" />
            <asp:BoundField DataField="stuSex" HeaderText="性别" SortExpression="stuSex" />
            <asp:BoundField DataField="stuHobby" HeaderText="爱好" SortExpression="stuHobby" />
            <asp:BoundField DataField="Remarks" HeaderText="备注" SortExpression="Remarks" />
            <asp:CommandField ShowCancelButton ="true" ShowEditButton ="true" ShowDeleteButton ="true" HeaderText ="高级操作" />
        </Columns>
    </asp:GridView>
        
       
            
            

    <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:BankConnectionString %>" SelectCommand="SELECT * FROM [BankCard]"></asp:SqlDataSource>
        
       
            
            

    <asp:SqlDataSource ID="SqlDataSource1" runat="server"></asp:SqlDataSource>
        
       
            
            

    </asp:Content>
